<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>测试</title>
	<script type='text/javascript' src='<%=path%>/fisher/plugin/supcan/dynaload.js?20'></script>
  </head>
  
  <body>
	<script>
		insertReport('AF', '');//AF是Object的id号、第二个参数为空表示没有初始参数
	</script> 
	<script> 
	 //OnReady 事件 
	 //id参数说明：如果页面中有多个插件/加载项，那么OnReady事件会被触发多次，id就是插件/加载项的id 
	 function OnReady( id ) 
	 { 
	   //假如执行如下js 
	   if(id=='AF'){
	    	AF.func("Build", "http://localhost:8080/FisherGrid/fisher/plugin/supcan/test.xml");
			//指定ds1数据源取数的URL地址 
			AF.func("SetSource", "ds1 \r\n http://localhost:8080/FisherGrid/fisher/jsp/xml.jsp?sortname=NAME&sortorder=ASC&query=&qtype=&dynamic=&dtype&fishergrid=/fisher/demo/export_demo.xml&exportIncludeColumns=&exportExcludeColumns"); 	    	
	    	AF.func("calc", "mode=asynch;range=full");
	   } 
	 } 
	  
	 //OnEvent 事件 
	 //OnEvent参数说明: “Event”为事件名，p1,p2,p3,p4参数有特定的含义，由具体的功能组件规定. 
	 function OnEvent(id, Event, p1, p2, p3, p4) 
	 { 
	   //假如执行如下js 
	   if(id=='AF'){
	   	   //alert(Event);
	   } 
	 } 
	 function onDoWorkSheetSelChanged(){
	 	alert("WorkSheetSelChanged");
	 }
	</script>     
  </body>
</html>
